package com.sen.rbac.feign;

import com.sen.common.common.response.MessageResult;
import com.sen.rbac.feign.fallback.RbacEntityTypeFeignFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 江传明
 */
@FeignClient(value = "linsir-sen-rbac",fallbackFactory = RbacEntityTypeFeignFallbackFactory.class)
public interface RbacEntityTypeFeign {

    /**
     * 同步主体类型
     * @param entityCode
     * @param entityTypeCodes 多个code使用逗号分隔
     * @return
     */
    @GetMapping("/tenantEntity/syncEntityTypeRoles")
    MessageResult syncEntityTypeRoles(@RequestParam("entityCode") String entityCode, @RequestParam("entityTypeCodes") String entityTypeCodes) ;
}
